<?php /* Smarty version Smarty3-SVN$Rev: 3286 $, created on 2011-02-18 23:19:48
         compiled from "/home3/xuanyano/public_html/geek-zoo.com/site/admin/Templates/resource_create.html" */ ?>
<?php /*%%SmartyHeaderCode:19113122724d5e8e14a6c113-76790965%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '7b6ffe2df6b0e1bf4f4d834bc6e311ac75331e2f' => 
    array (
      0 => '/home3/xuanyano/public_html/geek-zoo.com/site/admin/Templates/resource_create.html',
      1 => 1288690005,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '19113122724d5e8e14a6c113-76790965',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<?php $_template = new Smarty_Internal_Template("lib/header.html", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
 echo $_template->getRenderedTemplate();?><?php unset($_template);?>

<!--main-->
<div id="main">
  <?php $_template = new Smarty_Internal_Template("lib/history.html", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
 echo $_template->getRenderedTemplate();?><?php unset($_template);?>

	<div class="breadcrumb"><a href="?url=index">首页</a> <img src="images/i.png" class="ico"> <a href="?url=resource/create">选择发布类型</a> <img src="images/i.png" class="ico"> <a href="javascript://">发布内容</a> </div>
	
	<div class="clearfix m10">
 <form action="?url=resource/create" method="post" accept-charset="utf-8" enctype="multipart/form-data">
		<input type="hidden" name="mid" value="<?php echo $_smarty_tpl->getVariable('mid')->value;?>
">
		<div class="sidebar">
			<?php  $_smarty_tpl->tpl_vars['val'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('attribute')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['val']->key => $_smarty_tpl->tpl_vars['val']->value){
?>
				<?php if ($_smarty_tpl->tpl_vars['val']->value['type']=='select'){?>
				<div class="m10">
					<?php echo $_smarty_tpl->tpl_vars['val']->value['name'];?>
:
					<select name="attribute[<?php echo $_smarty_tpl->tpl_vars['val']->value['id'];?>
]">
					  <?php  $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['val']->value['value']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value){
?>
					    <option value="<?php echo $_smarty_tpl->tpl_vars['v']->value;?>
"><?php echo $_smarty_tpl->tpl_vars['v']->value;?>
</option>
					  <?php }} ?>
					</select>
				</div>
				<?php }?>
			<?php }} ?>
			<div class="clearfix m10"><input name="" type="button" class="fr btn_fb" onclick="submit()"></div>
		</div>
		<div class="center">
			<div class="input_title">
			标题：<input name="title" type="text">
			</div>
			<?php  $_smarty_tpl->tpl_vars['val'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('attribute')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['val']->key => $_smarty_tpl->tpl_vars['val']->value){
?>
				<?php if ($_smarty_tpl->tpl_vars['val']->value['type']=='input'){?>
						<div class="input_title mt10">
						<?php echo $_smarty_tpl->tpl_vars['val']->value['name'];?>
:
					  	<input type="input" name="attribute[<?php echo $_smarty_tpl->tpl_vars['val']->value['id'];?>
]" />
						</div>
				<?php }elseif($_smarty_tpl->tpl_vars['val']->value['type']=='text'){?>
				<h1 class="caution_ttl"><?php echo $_smarty_tpl->tpl_vars['val']->value['name'];?>
</h1>
					<div class="input_con mt10">
						<div><textarea name="attribute[<?php echo $_smarty_tpl->tpl_vars['val']->value['id'];?>
]"></textarea></div>
					</div>
				<?php }elseif($_smarty_tpl->tpl_vars['val']->value['type']=='file'){?>
					<div class="input_title mt10">
					<?php echo $_smarty_tpl->tpl_vars['val']->value['name'];?>
:
				  	<input type="file" name="attribute_<?php echo $_smarty_tpl->tpl_vars['val']->value['id'];?>
" />
					</div>
				<?php }?>
			<?php }} ?>
		</div>
	</div>
	</form>
</div>
<!--/main-->
<script type="text/javascript" src="js/tiny_mce/tiny_mce.js"></script>
<script type="text/javascript" src="js/tinyMCE.config.js"></script>

<?php $_template = new Smarty_Internal_Template("lib/footer.html", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
 echo $_template->getRenderedTemplate();?><?php unset($_template);?>